package gof23.structure.adapter;
/**
 * 通过引用的方式实现适配器
 */
public class Adapter_ref implements Target{

	private Adaptee adaptee = new Adaptee();

	@Override
	public void doSomthing1(String thing1) {
		System.out.println("adapter do thing1 ");
		adaptee.doSomething(thing1);
		
	}

	@Override
	public void doSomthing2(String thing2) {
		System.out.println("adapter do thing2 ");
		adaptee.doSomething(thing2);
		
	}
	
	
}
